import axiosInstance from "../axiosInstance";


const orderInfo = {
    /**
     * 分页查询订单信息
     * @param {{ pageIndex,start_time,end_time,order_status,uid }} param0 
     * @returns {Promise<Object>}
     */
    getListByPage({ pageIndex, start_time, end_time, order_status, uid }) {
        return axiosInstance.get("/orderInfo/getListByPage", {
            params: {
                pageIndex, start_time, end_time, order_status, uid
            }
        })
    },
    /**
     * 订单是否发货
     * @param {{id}} id 
     * @returns {Promise<Object>}
     */
    updateOrderToDeliver({id}){
        return axiosInstance.get("orderInfo/updateOrderToDeliver",{
            params:{
                id
            }
        })
    }
}

export default orderInfo;